home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 07 - 1991 / 07.02 Feb 91 / Jorg Source / MacTutorDoc.h < prev    next >
Encoding:
Text File  |  1990-12-18  |  711 b   |  29 lines  |  [TEXT/MPS ]

  1. // Our document class. Only displays some text in a window
  2. //
  3. class TMacTutorDocument : public TDocument {
  4.     
  5.   protected:
  6.     short fItemSelected;
  7.     // string corresponding to menu item selected
  8.     StringPtr fDisplayString;
  9.  
  10.     void DrawWindow(void);
  11.  
  12.   public:
  13.     TMacTutorDocument(short resID, StringPtr s);
  14.     ~TMacTutorDocument(void);
  15.     // routine to access private variables
  16.     void SetDisplayString (StringPtr s) {fDisplayString = s;}
  17.     short GetItemSelected(void) {return fItemSelected;}
  18.     void SetItemSelected(short item) {fItemSelected = item;}
  19.  
  20.     // methods from TDocument we override
  21.     void DoUpdate(void);
  22.     
  23.     // Fortran calling;
  24.     pascal void FtnCall(short *menuitem, long k, float *r);
  25. };
  26.  
  27. const int kMinDocDim = 40;
  28.  
  29.